/*
 * adc_driver.h
 *
 * Created: 2014-01-09 12:18:56
 *  Author: Johan
 */ 


#ifndef ADC_DRIVER_H_
#define ADC_DRIVER_H_
#define A_SENSOR_0 ADC_CH_MUXPOS_PIN1_gc
#define A_SENSOR_1 ADC_CH_MUXPOS_PIN2_gc
#define A_SENSOR_2 ADC_CH_MUXPOS_PIN3_gc
#define A_SENSOR_3 ADC_CH_MUXPOS_PIN4_gc
void init_adc();
int adc_read();
int adc_read_dummy();
void set_active_analog_sensor(int);
int active_sensor_a;

#endif /* ADC_DRIVER_H_ */